16. Add the Originator Rework Task Step

If the claim approvers select Rework as their action decision, the workflow assigns a task to the claim requester (also known as the originator). The originator can edit and resubmit the claim, or they can cancel the claim. This creates a looping effect between the approver's approval task step and the originator's rework task step. This loop can continue as long as necessary until either party selects a different action decision. In this section, you will complete the steps for the Rework outcome by adding a Task step for the originator and SmartObject Method steps for updating the status.

  1. Add a Task step to the design canvas and connect it to the Rework outcome of the Claim Approval > Decision step. Note that in the image below, we have moved the outcome lines around to improve the flow. You can do this as well, but it's not required. Use the table below the image to configure the Task step. If you need help, expand the "Show me how..." section.
    Add Task to Canvas
    Tab/ScreenSettingNotes
    TASKINSTRUCTIONSEnter instructions that explain to the originator why they are assigned this task.
     ACTIONSResubmit Claim
    Cancel Claim
    FORMFORM TYPE
    SmartForm
    FORM
    Expense Claim Form
    You will use the Expense Claim Form for this task with a new State.
    Open Task on a Form wizard
    REFERENCESData sources discovered

    There are no changes on this screen.

    OPEN TASKHelp me configure it This option steps you through each setting.
    WORKFLOW VIEWCreate new State
    Originator Rework State
    Create a new state. Rename the state for clarity.
    OPEN TASK RULE ACTION Keep the default settings.
    AFTER SUBMIT ACTION Keep the default settings.
    SummarySave and finish the wizardThere are no changes to this screen.
    Configuration Panel (continued)
    RECIPIENTSOriginatorKeep the default setting.
    EMAIL ALERTDefaultYou will not customize the task notification email.
    PROPERTIESName
    Originator Rework
    Rename the step.
    1. Add a Task step from the Toolbox > Basic menu to the design canvas. Connect the Rework outcome from the Claim Approval > Decision step to the new Task step.
      In the image below, we have moved the outcome lines around the Decision step to improve the flow of the workflow structure. This has no bearing on the workflow itself, it's just meant to improve the readability of the workflow structure. Feel free to move the lines around your own environment, but just note it is not required. To move the lines, select the outcome line. Click and drag the active handle (red circle) and move it to another location on the step border.
      Moving Outcome Lines

      Add Task Step
    2. Select the Task so that it is active, then expand the Configuration Panel. Click the TASK tab to make it active. For the INSTRUCTIONS, enter
      Your expense claim requires additional work. Please rework the claim and resubmit it, or cancel the claim.
    3. Add two ACTIONS,
      Resubmit Claim
      Cancel Claim
      Configure Actions
    4. Click the FORM tab. Change the FORM TYPE to SmartForm. Select Expense Claim Form for the FORM.
    5. The Open Task on a Form wizard launches.

    6. On the REFERENCES screen, there are no changes, so click NEXT.
    7. On the OPEN TASK screen, select Help me configure it, then click NEXT.
    8. On the WORKFLOW VIEW screen, keep the default Create a new State, then enter
      Originator Rework State
      for the state name. Click NEXT.
      Create New State
    9. On the OPEN TASK RULE ACTION screen, there are no changes, so click NEXT.
    10. On the AFTER SUBMIT ACTION screen, there are no changes, so click NEXT.
    11. On the summary screen, review the changes the product makes on your behalf, then click SAVE AND FINISH. When you see the success check, click OK.
    12. Click the RECIPIENTS tab. Confirm the recipient is Originator. You are assigning this task to the claim requester so they can rework the request, then resubmit it (or cancel it).
      Task Recipient
    13. You will not customize the task notification email, so you can move on to the last configuration, renaming the step. Click the PROPERTIES tab. Change the step name to
      Originator Rework
      then collapse the Configuration Panel.
      Rename Step
  2. Add a Decision step and connect it to the Originator Rework step.
    1. Next, you will add a Decision step and connect it to the rework step. The Decision step generates the outcomes for the rework actions.
      From the Toolbox > Logic menu, drag a Decision step to the design canvas. Connect the Originator Rework and Decision steps.
      As you add more steps to the design canvas, shortcuts are added to the Favorites bar. You can use these shortcuts for adding steps instead of expanding Toolbox menus.
      Add Decision Step
  3. Next, you will complete the Resubmit Claim outcome by adding a SmartObject Method step to update the Request Status.
    Copy and paste the Set Status Rejected step and connect it to the Resubmit Claim outcome. (You will copy/paste the bundled steps, then delete the email step.) Edit the step and change the Request Status to Claim Resubmitted. Change the step name to Set Status Rebmitted.
    1. To complete the Resubmit Claim outcome, you will copy and paste another SmartObject Method step, then edit it to reflect the resubmitted status. Copy and paste the Set Status Rejected bundled steps. Expand the bundled step, select the email step and press <DELETE> on your keyboard to remove it.
      Delete a Bundled Step
    2. Align the Set Status Rejected step with the Resubmit Claim outcome and connect them.
      Connect Steps
    3. Edit the (copied) Set Status Rejected step. Change the Request Status INPUT MAPPINGS to
      Claim Resubmitted
      then change the step name to
      Set Status Resubmitted
      then collapse the Configuration Panel.
      Input Mappings
      Change Step Name
  4. The step you will add for the canceled outcome is also a SmartObject Method step which updates the Request Status if the claim is canceled.
    Copy and paste, the Set Status Resubmitted step. Align and connect it to the Cancel Claim outcome. Edit the step and change the Request Status INPUT MAPPINGS to Request Canceled. Change the step name to Set Status Canceled.
    1. The last SmartObject Method step for this Task updates the status for the canceled outcome. Select the Set Status Resubmitted step, then copy and paste it onto the design canvas. Align it with the Cancel Claim outcome and connect the two.
    2. Edit the (copied) Set Status Resubmitted step. Change the Request Status INPUT MAPPINGS to
      Claim Canceled
      then change the step name to
      Set Status Canceled
      then collapse the Configuration Panel.
      Claim Canceled
      Change Step Name
  5. The last step in this section is to route the claim submitted outcome back to the Set Status Submitted step. Right now, the outcome ends with the status update, but you need it to go through the approval process once again.
    Connect the Set Status Resubmitted step to the Decision step (just above the Claim Approval step).
    1. To close this section out, you need to connect the resubmitted outcome back to the beginning of the workflow so the originator's rework edits go through the approval process once again. Hover over the border of the Set Status Resubmitted step until you see a handle appear. Click and drag the handle to the top of the workflow and connect it to the Decision step just before the Claim Approval step. This completes the loop for the resubmitted outcome.
    2. Your workflow should look similar to the image below. It may not reflect exactly if you did not rearrange the outcomes for the Claim Approval Decision step. Just confirm your step names and types match the image below and the outcomes connect to the correct steps.
      Expense Claim Workflow - Partial Three

Review

In this step, you configured the Originator Rework steps. The key features of this topic are using the copy and paste functionality to reuse existing steps. This saves time and maintains consistency with step configuration. Another key feature is the looping effect created with the Originator Rework > Resubmit Claim outcome. You now have a loop between the Claim Approval steps and the Originator Rework steps. This loop can repeat itself as many times as necessary, until either the approver or originator changes their action decision. In the next step, you add and configure the Finance Processing steps.

Next Step: 17. Add the Finance Processing Task Steps